
get_filename_component(CUR_PROJ_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)

string(REPLACE " " "-" CUR_PROJ_NAME "${CUR_PROJ_NAME}")
#message(STATUS "current dir:${CUR_PROJ_NAME}")

project(${CUR_PROJ_NAME} C)

aux_source_directory(. ${PROJECT_NAME}_SRC_FILES)

add_executable(${PROJECT_NAME} ${${PROJECT_NAME}_SRC_FILES})

